package com.itheima.userservice.controller;

import com.itheima.bestcommon.pojo.User;
import com.itheima.feignclient.base.UserApi;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


/**
 * UserController
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/7/20 16:44
 */
@RestController
public class UserController implements UserApi {
    @Override
    public User getById(@PathVariable Integer id) {
        User user = new User();
        user.setId(id);
        user.setUsername("1234");
        user.setPassword("1355");

        return user;
    }
}
